package com.jsmy.softapp.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jsmy.softapp.R;
import com.jsmy.softapp.bean.RankListBean;

/**
 * Created with Android Studio.
 * User: wei_cd.
 * Date: 2018/4/18.
 * Time: 11:21.
 * To change for file | settings | file and code templates.
 */

public class RankListAdapter extends BaseQuickAdapter<RankListBean.DataBean.ListBean, BaseViewHolder> {

    public RankListAdapter() {
        super(R.layout.fragment_ranklist_item);
    }

    @Override
    protected void convert(BaseViewHolder helper, RankListBean.DataBean.ListBean item) {
        helper.setText(R.id.tv_ranklist_title, item.getWeektitle())
                .setText(R.id.tv_yxgt, "有效沟通：" + item.getYxgt())
                .setText(R.id.tv_sjkh, "收集客户：")
                .setText(R.id.tv_qdph, "签单排行：" + item.getQdph())
                .setText(R.id.tv_tgsl, "推广数量：" + item.getTuicnt())
                .setText(R.id.tv_seq, item.getSeq());
    }
}
